package com.movie.service.impl;

import com.movie.mapper.auto.UserMapper;
import com.movie.model.auto.ScoreAccount;
import com.movie.model.auto.UserScore;
import com.movie.mapper.auto.UserScoreMapper;
import com.movie.model.auto.UserScoreAccount;
import com.movie.service.IUserScoreService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户评分表 服务实现类
 * </p>
 *
 * @author 达瓦里氏
 * @since 2021-12-16
 */
@Service
public class UserScoreServiceImpl extends ServiceImpl<UserScoreMapper, UserScore> implements IUserScoreService {

    @Resource
    private UserScoreMapper userScoreMapper;

    @Override
    public List<UserScoreAccount> SelectAllScore() {
        return userScoreMapper.SelectAllScore();
    }

    @Override
    public UserScoreAccount SelectScoreById(int id) {
        return userScoreMapper.SelectScoreById(id);
    }

    @Override
    public List<UserScoreAccount> SelectScoreByName(String value) {
        return userScoreMapper.SelectScoreByName(value);
    }

    @Override
    public List<UserScoreAccount> SelectByName(String name) {
        return userScoreMapper.SelectByName(name);
    }

    @Override
    public List<ScoreAccount> getScoreById(int id) {
        return userScoreMapper.getScoreById(id);
    }
}
